package com.novel.entiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @author tanghao
 * @date 2022/4/18
 */

/**
 * 评论点赞
 */
@ApiModel(value = "com-novel-entiy-CommentSupport")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "comment_support")
public class CommentSupport {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 评论id
     */
    @TableField(value = "comment_id")
    @ApiModelProperty(value = "评论id")
    private Long commentId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 博客id
     */
    @TableField(value = "novel_id")
    @ApiModelProperty(value = "博客id")
    private Long novelId;

    public static final String COL_ID = "id";

    public static final String COL_COMMENT_ID = "comment_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NOVEL_ID = "novel_id";
}